import request from '../utils/index'

// 获取新闻频道推荐
export const getRecommendNews = params => {
  return request({
    method: 'GET',
    url: '/app/v1_1/articles',
    params
  })
}
// 获取推荐频道列表
export const getAllChannelList = () => {
  return request({
    method: 'GET',
    url: '/app/v1_0/channels'
  })
}
// 获取文章详情
export const getArticleDetails = articleId => {
  return request({
    method: 'GET',
    url: `/app/v1_0/articles/${articleId}`
  })
}
